package chapter05

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test12_MyWhile
 * Package: chapter05
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 *          Date: 2023-06-20
 *          Time: 17:25
 */

object Test12_MyWhile {
  def main(args: Array[String]): Unit = {
    var n = 10

    //常规while循环
    while (n >= 1){
      println(n)
      n -= 1
    }

    //自定义

  }
}
